s = s.lower() |
print("Enter a word with some upper case letters") |
print(s) |
s = input() |
1 | print("Enter a word with some upper case letters") |
2 | s = input() |
3 | s = s.lower() |
4 | print(s) |
print("Enter a string") |
s = input() |
print(l) |
l = len(s) |
1 | print("Enter a string") |
2 | s = input() |
3 | l = len(s) |
4 | print(l) |
print(s) |
s = s.replace("a","?") |
s = input() |
print("Enter a word with some a's in it") |
1 | print("Enter a word with some a's in it") |
2 | s = input() |
3 | s = s.replace("a","?") |
4 | print(s) |
s = input() |
print("Enter a word") |
print(s) |
s = s.upper() |
1 | print("Enter a word") |
2 | s = input() |
3 | s = s.upper() |
4 | print(s) |
print(s) |
s = input() |
s = s.strip() |
print("Enter a word with some spaces at the start and end") |
1 | print("Enter a word with some spaces at the start and end") |
2 | s = input() |
3 | s = s.strip() |
4 | print(s) |
print("No") |
s = input() |
print("Enter a 5 letter word") |
else: |
l = len(s) |
print("Yes") |
if l == 5: |
    print("No") |
s = input() |
print("Enter a 5 letter word") |
else: |
l = len(s) |
    print("Yes") |
if l == 5: |
1 | print("Enter a 5 letter word") |
2 | s = input() |
3 | l = len(s) |
4 | if l == 5: |
5 |     print("Yes") |
6 | else: |
7 |     print("No") |
s = s.title() |
print(s) |
print("Enter a sentence") |
print(s) |
s = input() |
s = s.upper() |
print(s) |
s = s.lower() |
1 | print("Enter a sentence") |
2 | s = input() |
3 | s = s.upper() |
4 | print(s) |
5 | s = s.lower() |
6 | print(s) |
7 | s = s.title() |
8 | print(s) |
i = input() |
else: |
print("Enter a number") |
print("Invalid") |
print("Valid") |
if i.isdigit() == False: |
i = input() |
else: |
print("Enter a number") |
    print("Invalid") |
    print("Valid") |
if i.isdigit() == False: |
1 | print("Enter a number") |
2 | i = input() |
3 | if i.isdigit() == False: |
4 |     print("Invalid") |
5 | else: |
6 |     print("Valid") |
s = input() |
print(s) |
s = s.replace(" ","") |
print("Enter a username with spaces") |
1 | print("Enter a username with spaces") |
2 | s = input() |
3 | s = s.replace(" ","") |
4 | print(s) |
print("Enter an upper case word") |
else: |
print("Try again") |
print("Thank you") |
s = input() |
if s == su: |
su = s.upper() |
print("Enter an upper case word") |
else: |
    print("Try again") |
    print("Thank you") |
s = input() |
if s == su: |
su = s.upper() |
1 | print("Enter an upper case word") |
2 | s = input() |
3 | su = s.upper() |
4 | if s == su: |
5 |     print("Thank you") |
6 | else: |
7 |     print("Try again") |
s = s.replace("e","") |
print("Enter a word") |
s = s.replace("i","") |
s = s.replace("a","") |
print(s) |
s = s.replace("o","") |
s = s.replace("u","") |
s = input() |
1 | print("Enter a word") |
2 | s = input() |
3 | s = s.replace("a","") |
4 | s = s.replace("e","") |
5 | s = s.replace("i","") |
6 | s = s.replace("o","") |
7 | s = s.replace("u","") |
8 | print(s) |
print("correct") |
print("What error can occur after a binary addition?") |
else: |
if s == "overflow error": |
print("incorrect") |
s = input() |
s = s.lower() |
    print("correct") |
print("What error can occur after a binary addition?") |
else: |
if s == "overflow error": |
    print("incorrect") |
s = input() |
s = s.lower() |
1 | print("What error can occur after a binary addition?") |
2 | s = input() |
3 | s = s.lower() |
4 | if s == "overflow error": |
5 |     print("correct") |
6 | else: |
7 |     print("incorrect") |
8 |      |
print("Enter a variable name made up of multiple words") |
print(s) |
s = input() |
s = s.replace(" ","") |
s = s.title() |
1 | print("Enter a variable name made up of multiple words") |
2 | s = input() |
3 | s = s.title() |
4 | s = s.replace(" ","") |
5 | print(s) |
s = s.lower() |
e = l1 - l2 |
l2 = len(se) |
print("e count: " + e) |
se = s.replace("e","") |
print("Enter a word") |
l1 = len(s) |
s = input() |
e = str(e) |
1 | print("Enter a word") |
2 | s = input() |
3 | s = s.lower() |
4 | se = s.replace("e","") |
5 | l1 = len(s) |
6 | l2 = len(se) |
7 | e = l1 - l2 |
8 | e = str(e) |
9 | print("e count: " + e) |
s = s.replace("a","%&%") |
print(s) |
s = s.replace("%&%", "e") |
s = input() |
print("Enter a word") |
s = s.replace("e","a") |
1 | print("Enter a word") |
2 | s = input() |
3 | s = s.replace("a","%&%") |
4 | s = s.replace("e","a") |
5 | s = s.replace("%&%", "e") |
6 | print(s) |
i = input() |
print("Float") |
d = i.replace(".","") |
if i.isdigit() == True: |
elif d.isdigit() == True and len(i) - len(d) == 1: |
print("Enter a float, string or integer") |
print("String") |
print("Integer") |
else: |
i = input() |
    print("Float") |
d = i.replace(".","") |
if i.isdigit() == True: |
elif d.isdigit() == True and len(i) - len(d) == 1: |
print("Enter a float, string or integer") |
    print("String") |
    print("Integer") |
else: |
1 | print("Enter a float, string or integer") |
2 | i = input() |
3 | d = i.replace(".","") |
4 | if i.isdigit() == True: |
5 |     print("Integer") |
6 | elif d.isdigit() == True and len(i) - len(d) == 1: |
7 |     print("Float") |
8 | else: |
9 |     print("String") |